﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet"  href="common/themes/bootstrap/easyui.css"/>
<link rel="stylesheet"  href="common/themes/icon.css"/>
<link rel="stylesheet"  href="common/css/common.css"/>
<script type="text/javascript" src="common/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="common/jquery.easyui.min.js"></script>
<!--<script type="text/javascript" src="common/jquery.easyui.min.js"></script>-->
<script type="text/javascript" src="common/js/common.js"></script>
 <script src="../webjs/core/config.js" type="text/javascript"></script>
 <script src="../weblib/jquery/jquery.adaptor.js" type="text/javascript"></script>
 <link href="../weblib/skins/main.css" rel="stylesheet" type="text/css" />
 <script src="../webjs/core/index.js" type="text/javascript"></script>

 <script type="text/javascript">
     var language = $.cookie('_language_');
     if (language == null || language == '') {
         document.write("<script src='../Language/sys_language/zh.js'><\/script>");
     }
     else if (Number(language) == 1) {
         document.write("<script src='../Language/sys_language/zh.js'><\/script>");
     }
     else if (Number(language) == 0) {
         document.write("<script src='../Language/sys_language/en.js'><\/script>");
     }
     //遍历span标签
     $(function () {
         $(".zh_en").each(function () {
             this.innerHTML = eval($(this).attr('rel'));
         });
         $(".panel-header .panel-title")[0].innerHTML = lang.File_ManageMent;
         
     });
   </script>

<style>

  .tree-title {width: 95%;}
  .row-box {
	width: 40%;
	float:left;
   }
  
.editable:hover
    {
         display :inline-block; border:0px ;float:left; padding-right:5px; width: 22px;height: 20px;
         background:url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/editable_bule.png') no-repeat
     }
  
  
    .visible:hover
    {
         display:inline-block; border:0px; float:left; padding-right:5px; width: 22px;height: 20px;
         background:url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/visible.png') no-repeat
    }
    .download:hover
    {
         display:inline-block; border:0px; float:left; padding-right:5px; width: 22px;height: 20px;
         background:url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/download_bule.png') no-repeat
    
    }
  
.visible
    {
        display:inline-block; border:0px; float:left; padding-right:5px; width: 22px;height: 20px;
        background: url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/visible_grey.png') no-repeat 
    }
.editable 
{ 
    display: inline-block;border: 0px;float: left;padding-right: 5px;width: 22px;height: 20px;
    background: url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/editable_grey.png') no-repeat;
}
 .download
    {
          display:inline-block; border:0px ;float:left; padding-right:5px; width: 22px;height: 20px;
          background: url('../WebFileExplorer/Scripts/hu8-fileexplorer/images/small/download_grey.png') no-repeat 
    }
</style>
  <script type="text/javascript">
      var user_id = $.cookie('_userId_');
      //修改元数据
      function edit(strId) {

          if (spceType == "10") {
              url = App_Config.CurrentUrl + "/WebFileExplorer/DataSubmit/EditSourceFiles2.aspx?path=" + strId + "&filename=" + '' + "&spacetype=individual";
          }
          else if (spceType == "20") {
              url = App_Config.CurrentUrl + "/WebFileExplorer/DataSubmit/EditSourceFiles2.aspx?path=" + strId + "&filename=" + '' + "&spacetype=group";
          }
          else {
              url = App_Config.CurrentUrl + "/WebFileExplorer/DataSubmit/EditSourceFiles2.aspx?path=" + strId + "&filename=" + '' + "&spacetype=project";
          }
         
          var con = "<iframe style='width:100%;height:100%;border:0;' src='" + url + "'></iframe>";
          $('#win').html(con);
          $('#win').window('open');

      }
      //下载
      function download(strId) {
         
          $.ajaxHandler({
              url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
              urlType: "GetUserFileRoleRight",
              model: function () {
                  var obj = {};
                  obj.UserId = user_id;
                  obj.FileId = strId;
                  obj.SpaceType = spceType;
                  obj.OpreType = spceType;
                  return $.toJSON(obj);
              },
              success: function (data) {
                  if (data) {
                      $("#frame").attr({
                          src: "../Views/DataSearch/WatchFileView.aspx?hiddenDownload=single&id=" + strId + "&space_type=" + spceType
                      });
                  }
                  else
                      alert(lang.Insufficient_permissions_contact_your_administrator);
              }
          });
      }
      //在线预览
      function browse(strId) {
          $.ajaxHandler({
              url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
              urlType: "GetUserFileRoleRight",
              model: function () {
                  var obj = {};
                  obj.UserId = user_id;
                  obj.FileId = strId;
                  obj.SpaceType = spceType;
                  obj.OpreType = spceType;
                  return $.toJSON(obj);
              },
              success: function (data) {
                  if (data) {
                      // 查看文件是否存在
                      $.post('../Handlers/FileExistHandler.ashx?fileid=' + strId + "&space_type=" + spceType,
                        {},
                        function (data) {
                            if (data.success && data.exist) {
                                window.open("../Views/DataSearch/WatchViewHander.aspx?id=" + strId + "&space_type=" + spceType, "_blank");
                            }
                            else {
                                alert(lang.File_converting);
                            }

                        });

                  }
                  else
                      alert(lang.Insufficient_permissions_contact_your_administrator);
              }
          });

      }
  </script>

</head>
<body class="easyui-layout">
     <div data-options="region:'north',border:false" class="topbg" style="height:80px"><div class="logo"></div>
    <div>
      <div id="rightinfo">
         <div class="top_right_exit"><span title="" onclick="logout();"></span></div>
      </div>
     </div>
     </div>
	<!--<div data-options="region:'north',border:false" style="height:47px;">
    <!--<div id="head-box">-->
	<!--<div id="head-logo-box"></div>
	<div id="head-search-box"></div>-->
    
    
    </div>
	<div id="t1" title="文件夹"  data-options="region:'west',split:true" style="width:200px;padding:10px;"><div  id="filetree"></div></div>
	
	<div data-options="region:'center',title:''">
    <div id="dh_box"><span id="dhtree"></span><div id="sortlist"><ul><li _value="DEST_OBJ" class="current"><span class="zh_en" rel="lang.object"></span></li><li _value="BIZ_OBJ"><span class="zh_en" rel="lang.Process"></span></li><li _value="FILE_SIZE"><span class="zh_en" rel="lang.size"></span></li><li _value="FILE_EXT"><span class="zh_en" rel="lang.format"></span></li><li _value="CREATE_TIME"><span class="zh_en" rel="lang.Creation_time"></span></li></ul></div></div>
    <div  id="tablegrid" style="height:500px; overflow-y:scroll; border:0px solid;"></div>
    <div id="subfiletree"></div>
    </div>
    <iframe id='frame' src="#" style="height: 1px"></iframe>
    <div data-options="modal:true,closed:true" id="win" class="easyui-window" title="Edit" style="width:770px;height:530px">
</body>
<script>
    var g_node_id = null;
    $(function () {
        init();
    });
</script>
</html>